package com.funtester.seven.day2;

public class Demo {

    public static void main(String[] args) {
        People p1 = new People("p1", 1);
        p1.sayHi();
        People.printTotal();
        Teacher t1 = new Teacher("t1", 12, "一中", false);
        Teacher.printTotal();
        int total = Teacher.total;
        t1.sayHi();

        People p2 = (People) new Teacher("t2", 12, "一中", false);
        p2.sayHi();





        Man man = new Man() {
            @Override
            public void instroduceOther(Man man) {

            }
        };

        Introduce introduce = new Introduce() {
            @Override
            public void introduce() {

            }
        };

        new Thread(() -> System.out.println(1));

    }

}
